package com.test.pattern.command;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: Order
 * @description: 订单类
 * @author: Mr du
 * @create: 2024-03-05 22:46
 */
public class Order {

    /**
     * 餐桌号码
     */
    private int diningTable;

    /**
     * 所下单餐品以及数量
     */
    private Map<String,Integer> foodDir = new HashMap<>();

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDir() {
        return foodDir;
    }

    public void setFoodDir(String foodName,int num) {
        foodDir.put(foodName, num);
    }
}
